/*
 * Camera.cpp
 *
 *  Created on: 13 mars 2011
 *      Author: seeme
 */

#include "Camera.h"

void Camera::translateX( float offset ){
	//m_position = m_position + (m_orientation * Quat4f(1, 0, 0) * m_orientation.conjug()).toVect() * offset;
}


void Camera::update(std::vector<int> coord){
	if(coord.size() < 6)
		return;
	m_from.x = coord[0];
	m_from.y = coord[1];
	m_from.z = coord[2];

	m_to.x = coord[3];
	m_to.y = coord[4];
	m_to.z = coord[5];
}

void Camera::glUpdate(){
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
}

void Camera::update(int eyex, int eyey, int eyez, int targx, int targy, int targz, int vertx, int verty, int vertz){
	m_from.x = eyex;
	m_from.y = eyey;
	m_from.z = eyez;

	m_to.x = targx;
	m_to.y = targy;
	m_to.z = targz;

	m_vertical.x = vertx;
	m_vertical.y = verty;
	m_vertical.z = vertz;
}

